package com.jf3q.sup.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName purchase_details
 */
@TableName(value ="purchase_details")
@Data
public class PurchaseDetails implements Serializable {
    /**
     * 采购明细ID,主键,自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 采购ID,外键参考采购表
     */
    private Integer purchaseId;

    /**
     * 商品ID,外键参考商品表
     */
    private Integer productId;

    /**
     * 采购数量
     */
    private Integer quantity;

    /**
     * 采购价格
     */
    private BigDecimal price;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private String prName;//产品名称

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}